package net.yxsoft.controller.pc.sysmgt.infrastructure;

import com.jfinal.config.Routes;
import net.yxsoft.resource.PathRes;
import net.yxsoft.controller.pc.sysmgt.common.ApiController;

/**
 * 权限管理相关模块的路由
 */
public class PCSysMgtBaseRoutes extends Routes {

  /**
  * @MethodName: config
  * @Description: 权限管理相关模块的路由
  * @param:
  * @return void
  * @throws
  * @date 2023/8/31 15:29
  * @author jhf
  */
  public void config() {
    final String ROOT_URL = PathRes.URL_PC_MGT_ROOT;
    final String VIEW_ROOT_PATH = PathRes.PATH_PC_MGT_INFRASTRUCTURE_VIEW;

    add(PathRes.URL_PC_MGT_API_ROOT, ApiController.class);

    setBaseViewPath(VIEW_ROOT_PATH);

    add(ROOT_URL, IndexController.class, "");
    add(ROOT_URL + "/code", CodeController.class, "");
    add(ROOT_URL + "/user", UserController.class, "");
    add(ROOT_URL + "/role", RoleController.class, "");
    add(ROOT_URL + "/group", GroupController.class, "");
    add(ROOT_URL + "/menu", MenuController.class, "");
    add(ROOT_URL + "/log", LogController.class, "");
    add(ROOT_URL + "/dataModel", DataModelController.class, "");

  }
}
